using System;
using System.Collections.Generic;
using System.Text;

namespace DecoratorPattern
{
    class Finery:Person
    {
        protected Person p;

        public void Decorate(Person component)
        {
            p = component;
        }

        public override string Show()
        {
            string str = "";
            if (p != null)
            {
                str += "\n" + p.Show();
            }
            return str;
        }
    }
}
